var mongoose = require('mongoose'),
    Schema = mongoose.Schema;

var GamePostSchema = new Schema({
	_creator : { type: Schema.Types.ObjectId, ref: 'User' },
	// To get comments we need only search comments with Post id, so no need for comments recording here.
	_comments     : [{ type: Schema.Types.ObjectId, ref: 'Comment' }],
    type     : String,
    title	 : String,
    content  : String
});

module.exports = mongoose.model('GamePost', GamePostSchema);